<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class OAStaffPosition extends Model
{
    protected $table = 'staff_position';

    //获取职位名称
    public function getPositionInfo()
    {
        return $this->hasOne('App\Model\OAPosition','id','position_id');
    }
}
